# -*- coding: utf-8 -*-
# @Time    : 2021/4/9 19:42
# @Author  : Zhangrenjie
# @Email   : zhangrenjie1998@163.com
# @File    : rand_MAC.py
# @Software: PyCharm


import string
import random

with open('MAC地址.txt', 'a', encoding='utf-8') as f:
    for i in range(100):
        s1 = ''.join(random.choices(string.ascii_uppercase[:6]+string.digits, k=2))
        s2 = ''.join(random.choices(string.ascii_uppercase[:6]+string.digits, k=2))
        s3 = ''.join(random.choices(string.ascii_uppercase[:6]+string.digits, k=2))
        f.write(f'01-AF-3B-{s1}-{s2}-{s3}\n')